home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / clue.lha / clue / doc / clue.tex / node233_mn.html < prev    next >
Text File  |  1989-07-12  |  1KB  |  35 lines

  1.  
  2. <H3><A ID="SECTION006511100000000000000">
  3. Using the Graphics Context Cache</A>
  4. </H3><#5343#>
  5.            
  6.       
  7.  
  8. The CLUE macro <#3271#><TT>using-gcontext</TT><#3271#> allows the programmer transparent
  9. access to a cache of previously-created <#3272#><TT>xlib:gcontext</TT><#3272#> objects. As
  10. a consequence of the <#3273#><TT>using-gcontext</TT><#3273#> macro, most CLUE programmers
  11. will seldom need to explicitly create or free graphics contexts. 
  12. The caching strategy implemented by <#3274#><TT>using-gcontext</TT><#3274#> is intended to
  13. minimize the number of <#3275#><TT>xlib:gcontext</TT><#3275#> objects created. A programmer
  14. requests a graphics context containing a specific set of attribute
  15. values. The <#3276#><TT>using-gcontext</TT><#3276#> macro creates a new <#3277#><TT>xlib:gcontext</TT><#3277#>
  16. with these attributes only if such a <#3278#><TT>xlib:gcontext</TT><#3278#> is not already
  17. present in its cache and the cache is not full. If the cache is full, then <#3279#><TT>using-gcontext</TT><#3279#> modifies a previously-cached <#3280#><TT>xlib:gcontext</TT><#3280#> and returns
  18. it.
  19.  
  20. <P>
  21. <#4725#>
  22. <#4507#><FONT SIZE="+1"><#3281#><B>using-gcontext Macro</B><#3281#></FONT><#4507#> 
  23. <A ID="3282"><tex2html_anchor_invisible_mark></A>
  24. <DIV class="RIGHT">
  25. <tex2html_image_mark>#tex2html_wrap_inline10466#
  26. </DIV><#4725#>
  27.  
  28. <P>
  29. <DIV class="RIGHT">
  30. <tex2html_image_mark>#tex2html_wrap_inline10468#
  31. </DIV>
  32.  
  33. <P>
  34.  
  35.  =0 <#5349#>=0 <#5353#>